import request from '@/utils/request'
//知识点资源接口
export function sysKnowledgeFilesQuery(data) { //知识点资源信息分页列表
    return request({
        method: 'get',
        url: '/sysKnowledgeFiles/query',
        params: data
    })
}

export function sysKnowledgeFilesQueryById(id) { //查询一条知识点资源信息
    return request({
        method: 'get',
        url: '/sysKnowledgeFiles/query/' + id,
    })
}

export function sysKnowledgeFilesAdd(data) { //添加一条知识点资源信息
    return request({
        method: 'post',
        url: '/sysKnowledgeFiles/add',
        data
    })
}

export function sysKnowledgeFilesDelete(id) { //删除一条知识点资源信息
    return request({
        method: 'get',
        url: '/sysKnowledgeFiles/delete/' + id,
    })
}

export function sysKnowledgeFilesUpdate(data) { //修改一条知识点资源信息
    return request({
        method: 'post',
        url: '/sysKnowledgeFiles/update',
        data
    })
}